import cv2
imgcaise=cv2.imread('car,png')
print('色彩图像的属性:')
print("shape=",imgcaise.shape)
print("size",imgcaise.size)
print("type=",imgcaise.dtype)
imgcaise=cv2.imread('car.png',cv2.IMREAD_GRAYSCALE)
print('灰色图像的属性:')
print("shape=",imgcaise.shape)
print("size",imgcaise.size)
print("type=",imgcaise.dtype)
